<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	    		xmlns:ui="http://java.sun.com/jsf/facelets"
	  			xmlns:h="http://java.sun.com/jsf/html"
	  			xmlns:f="http://java.sun.com/jsf/core"
	  			xmlns:p="http://primefaces.org/ui"
	  			template="/WEB-INF/layouts/standard.xhtml">

<ui:define name="title">#{msg['application_name']}</ui:define>

<ui:define name="content">

<h1>#{msg['title_contact_add_review']}</h1>

<h:form >

    <h3>
        <h:outputText value="#{msg['label_contact_first_name']}: "/>
        <h:outputText value="#{contactBean.contact.firstName}"/>
        <br/>
        <h:outputText value="#{msg['label_contact_last_name']}: "/>
        <h:outputText value="#{contactBean.contact.lastName}"/>
        <br/>
        <h:outputText value="#{msg['label_contact_birth_date']}: "/>
        <h:outputText value="#{contactBean.contact.birthDate}">
            <f:converter converterId="jodaDataTimeConverter" />
        </h:outputText>
    </h3>
    <h3>#{msg['label_contact_hobbies']}</h3>  
    <p:dataList value="#{contactBean.hobbies.target}" var="hobby">  
        #{hobby.hobbyId} 
    </p:dataList>
    <br/>    

    <p:toolbar>  
        <p:toolbarGroup align="left">
            <p:commandButton value="Save" action="next"/>
            <p:commandButton value="Back" action="back"/>
            <p:commandButton value="Exit" action="exit" immediate="true"/>        
        </p:toolbarGroup>
    </p:toolbar> 
</h:form>  

</ui:define>

</ui:composition>